import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import util from '@/utils/util.js'
import api from '@/utils/api.js'
import UniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
import topTitle from '@/components/topTitle.vue'
Vue.config.productionTip = false
Vue.prototype.util = util
Vue.prototype.api = api
App.mpType = 'app'
Vue.component('UniIcons',UniIcons)
Vue.component('topTitle',topTitle)
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif